/**
 * @format
 * @Author: TC
 * @Date: 2021-11-24 13:54:28
 * @Last Modified by: TC
 * @Last Modified time: 2023-03-25 21:59:53
 */

import { app } from "../../FrameWork/App";
import { nsBundleConst } from "../Const/BundleConst";
import { mCollideConst } from "../Const/ColldeConst";

//工具类
export class GameTool {
    /**
     * 播放按钮音效
     */
    public static playButtonSound(): void {
        // soundMgr.playEffect(SoundConst.BUTTON);
    }

    /**
     * 进入关卡
     * @param lvl 关卡
     * @returns
     */
    public static enterLevel(lvl: number = 0): void {
        // if (storageMgr.getNumber(mFrameStorageConst.ENERY) <= 0) {
        //     windowMgr.openWindow(mBundleConst.Energy, "eneryWindow")
        //     return;
        // }
        // storageMgr.addNumber(mFrameStorageConst.ENERY, -1);
        // gameDataMgr.currLevel = lvl;
        app.sceneMgr.runScene("PostEffectScene", nsBundleConst.Game);
    }
}
